<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>否定伪类</title>
<style>
    /* 排除有fail的标签的 */
    /* div>p:not(.fail)
    {
        color: red;
    } */
    /* 属性选择器用[] */
    /* div>p:not([title^="你要加油"])
    {
        color: red;
    } */
    
    div>p:not(:first-child)
    {
        color: red;
    }

</style>

</head>
<body>
    <div>   
       <p >zhangsan</p>
       <p>zhangsi</p>
       <p>zhangwu</p>
       <p>zhangliu</p>
       <p>zhangqi</p>
       <p class="fail" title="你要加油">zhangba</p>
    
   </div>
</body>
</html>